//
//  FYMessageView.h
//  FYAgent
//
//  Created by 于龙 on 15/11/20.
//  Copyright © 2015年 Foryou. All rights reserved.
//

#import <UIKit/UIKit.h>

@class FYMessageView;
@protocol FYMessageViewDelegate <NSObject>
- (void)alertView:(FYMessageView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;
- (void)alertViewWarnBtnClicked:(FYMessageView *)alertView;
- (BOOL)setTextFieldWithTextField:(UITextField *)textField range:(NSRange)range string:(NSString *)string;
@end

@interface FYMessageView : UIView
@property (weak, nonatomic) IBOutlet UIView *whiteView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *messageLabel;
@property (weak, nonatomic) IBOutlet UIView *twoBtnView;
@property (weak, nonatomic) IBOutlet UIView *oneBtnView;
@property (weak, nonatomic) IBOutlet UIButton *leftBtn;
@property (weak, nonatomic) IBOutlet UIButton *rightBtn;
@property (weak, nonatomic) IBOutlet UIButton *signalBtn;

@property (assign,nonatomic) id<FYMessageViewDelegate>delegate;

/**
 *  设置alertview的内容
 *
 *  @param title
 *  @param msg
 *  @param titles
 */
-(void)setAlertTitle:(NSString *)title
         warningShow:(BOOL)show
             message:(NSString *)msg
           btnTitles:(id)titles;

/**
 *  设置alertview的属性内容
 *
 *  @param title
 *  @param msg
 *  @param titles
 */
-(void)setAlertTitle:(NSString *)title
        attributeMsg:(NSAttributedString *)msg
           btnTitles:(id)titles;
@end
